﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace May_20_2021
{
    class Square:Shape
    {
        protected double sideLen { get; set; }

        public override void GetArea()
        {
            base.GetArea();
            Console.Write("请输入正方形的边长：");
            sideLen = double.Parse(Console.ReadLine());
            Console.WriteLine("正方形的面积为："+sideLen * sideLen);
        }
    }
}
